﻿#include "startwidget.h"

StartWidget::StartWidget() {
    m_bmpList = Dir::entryList("./res/startRes");  //1.bmp 2.bmp 3.bmp
}

void StartWidget::show() {
    Bmp b1;
    //使用常量正向迭代器
    for(std::list<std::string>::iterator it = m_bmpList.begin() ; it != m_bmpList.end(); it++) {
        b1.setFileName(*it);
        b1.show();

        sleep(1);
    }
}
